package cn.lzg.common.module.user.request;

import cn.lzg.common.core.serial.Serializer;

/**
 * 注册请求对象
 * 
 * @author LizG
 *
 */
public class RegisterRequest extends Serializer {

	/**
	 * 用户名
	 */
	private String userId;

	/**
	 * 密码
	 */
	private String password;
	

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	protected void read() {
		this.userId = this.readString();
		this.password = this.readString();
	}

	@Override
	protected void write() {
		this.writeString(userId);
		this.writeString(password);
	}

}
